<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Region extends MX_Controller {


	function __construct()
	{
		parent::__construct();
		$this->load->model('location/location_model');
	}

	public function index($offset = 0, $limit = 5)
	{
		$countryId = $this->config->item('default_country');
		
		
		$data['region'] = $this->location_model->getAllState($countryId,$offset,$limit);
		$this->load->view('region',$data);
	}

	
	function All(){
		
		$this->template->set_layout('static');
		$data['region'] = $this->location_model->getAllState($this->config->item('default_country'),0,999999999);
		
		$data['site_title'] = $this->settings_model->siteInfo('web_title');
		
		$this->template->set_breadcrumb('Home', '/')
		//->set_breadcrumb('Category','')
		->set_breadcrumb('Region All','')
		;
		
		$this->template->set_partial('nav_bar','header/nav_bar');
		$this->template->set_partial('header_search','header/header_search');
		$this->template->build('region_all',$data);
	}
	
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */
